package com.hoas.quickstart.threads.chapter02.chapter02_2_9_01;

public class Run2 {

    public static void main(String[] args) {

        Service service1 = new Service();
        Service service2 = new Service();

        ThreadA a = new ThreadA( service1 );
        a.setName("A");
        a.start();

        ThreadB b = new ThreadB( service2 );
        b.setName("B");
        b.start();


    }

}
